Allow commits to mark refs as EOL, replaced by others
authorDaniel Drake <drake@endlessm.com>
Mon, 15 May 2017 18:13:38 +0000 (12:13 -0600)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 22 May 2017 20:18:07 +0000 (20:18 +0000)
commitc1ed9a15c1adb44ef30984f984c7ce199b88af03
tree847c8bbbf1cf13012b97cc8f558a767f79c39ac7
parentcd65f85dcbed6930eb5d3fdb344b173c4356da30
Allow commits to mark refs as EOL, replaced by others

A commit can now include a "ostree.endoflife-rebase" metadata key
pointing to a new ref.

When updating, the sysroot upgrader will see this and proceed to
pull and deploy the new ref instead. The origin file in the new
deployment will point to the new ref.

This functionality is planned to be used in Endless OS. We will create
a lesser tested branch for brand new, cutting edge hardware support,
and ship that on hardware platforms that require the latest drivers.
However, once our slower-moving official release is later updated to
support the new hardware, we will use this functionality to migrate
those bleeding-edge users over to the official release.

Closes: #874
Approved by: cgwalters
Makefile-tests.am
src/libostree/ostree-sysroot-upgrader.c
tests/test-admin-upgrade-endoflife.sh [new file with mode: 0755]